﻿<UserControl x:Class="MDCAdminTool.Controls.ChartStatsBase"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    
    xmlns:kit="clr-namespace:System.Windows.Controls.DataVisualization.Charting;assembly=System.Windows.Controls.DataVisualization.Toolkit">

    <ScrollViewer HorizontalScrollBarVisibility="Hidden" VerticalScrollBarVisibility="Auto"  >
        <Grid MinHeight="300">
            <kit:Chart x:Name="chartStats" >
                <kit:Chart.Title>
                    <TextBlock Text="{Binding Title}" />
                </kit:Chart.Title>

                <kit:BarSeries Name="ChartData" Title="{Binding SubTitle}" 
               IndependentValueBinding = "{Binding Name}"
               DependentValueBinding   = "{Binding Value}"/>


                <kit:Chart.Axes>
                    <kit:LinearAxis Orientation="X"  ShowGridLines="True" Minimum="0"/>
                </kit:Chart.Axes>

            </kit:Chart>
        </Grid>
    </ScrollViewer>
</UserControl>
